package com.huizu.project.apiController;

import com.huizu.common.annotation.Anonymous;
import com.huizu.common.annotation.Log;
import com.huizu.common.core.controller.BaseController;
import com.huizu.common.core.domain.AjaxResult;
import com.huizu.common.core.page.TableDataInfo;
import com.huizu.common.enums.BusinessType;
import com.huizu.common.utils.poi.ExcelUtil;
import com.huizu.project.domain.ProConfigText;
import com.huizu.project.service.IProConfigTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 手机号配置Controller
 * 
 * @author zhangmx
 * @date 2024-06-05
 */
@Anonymous
@RestController
@RequestMapping("/api/proconfigtext")
public class ApiProConfigTextController extends BaseController
{
    @Autowired
    private IProConfigTextService proConfigTextService;

    /**
     * 获取手机号配置详细信息
     */
    @PostMapping(value = "/getById")
    public AjaxResult getInfo(@RequestBody ProConfigText proConfigText)
    {
        String id = proConfigText.getId();
        return success(proConfigTextService.selectProConfigTextByConfigurationId(id));
    }

}
